package com.young.ysepay.controllers;

import com.young.ysepay.service.YsDownloadBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * describe: 银盛订单获取对账单下载
 *
 * @author zhaopengjun
 * @date 2019/8/7 21:14
 */
@RestController
@RequestMapping("/ysDownloadbill")
public class YsDownloadBillController {
    @Autowired
    YsDownloadBillService ysDownloadBillService;

    @RequestMapping(value = { "/getBill" }, produces = { "text/html;charset=UTF-8" }, method = {
            RequestMethod.POST })
    public String getBill(@RequestParam String accountDate){

        return ysDownloadBillService.getBill(accountDate);
    }

}
